﻿namespace Net13_Others
{
    struct Point
    {
        public int X;
        public int Y;
        public static int Z = 3; // 静态变量可直接初始化

        public Point() // 成员字段只能构造方法中
        {
            X = 0;
            Y = 0;
        }

        public override string ToString() => $"x: {X}, y: {Y}, z: {Z}";
    }

}
